<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="Generator" content="EditPlus®">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <title>数组的排序</title>
</head>

<body>
    <h1>数组的排序</h1>
    <script>
        function sizes(arr) {
            console.log(arr);
            return arr.sort(function(a, b) {
                return a - b;
            });
        }
        document.body.innerHTML = sizes([3, 2, 1, 5, 6, 7, 8, 9, 10, 22, 55, 44, 56, 99]);
    </script>
    <script text="text/javascript" scr="js/jquery.min.js"></script>
</body>

</html>